<?php

class User
{
  protected $username = null;
  protected $password = null;
  protected $createdAt = null;
  
  public function getUsername()
  {
    return $this->username;
  }
  
  public function getCreatedAt()
  {
    return $this->createdAt;
  }
  
  public function getPassword()
  {
    return $this->password;
  }
  
  public static function getAllUsers()
  {
    $users = array();
    for($i = 0 ; $i < 100; $i++) {
      $user = new User(); 
      $user->username = 'User' . $i;
      $user->password = 'Password' . $i;
      $user->createdAt = date('Y-m-d H:i:s',strtotime('-' . $i . ' days'));
      $users[] = $user;
    }
    
    return $users;
  }
}